//
//  Element.h
//  iFlickr
//
//  Created by 张 霄鹤 on 09-7-5.
//  Copyright 2009 xhzhang. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "Node.h"

@interface Element : Node {
	/**
	 * 元素节点名称
	 */
	NSString *elementName;
}

/**
 * 通过名称创建
 */
+ (id)elementWithName:(NSString *)eName;

- (id)initWithName:(NSString *)eName;

/**
 * 获取节点名称
 */
- (NSString *)getNodeName;

- (NSArray *)getElementsByName:(NSString *)ename;

// - (Node *)query:(NSString *)xpath;

- (void)dealloc;

@end
